﻿using SqlSugar;

namespace Shop.Model.Entity.System;

/// <summary>
/// banner
/// </summary>
[SugarTable("sys_banner")]
public class SysBanner: BaseEntity
{
    /// <summary>
    /// 类型
    /// 1：Banner
    /// 2：公告
    /// </summary>
    public int Form { get; set; }
    
    /// <summary>
    /// 标题
    /// </summary>
    public string Title { get; set; }
    
    /// <summary>
    /// 图片地址
    /// </summary>
    public string ImgUrl { get; set; }
    
    /// <summary>
    /// 投放设备
    /// 1：小程序
    /// 2：APP
    /// 3：后台
    /// 4：ALL
    /// </summary>
    public int Equipment { get; set; }
    
    /// <summary>
    /// 投放位置
    /// 0：ALL
    /// 1：首页
    /// 2：云仓
    /// 3：我的
    /// 4：回馈金
    /// 5：首页中间广告
    /// </summary>
    public int Location { get; set; }
    
    /// <summary>
    /// 跳转类型
    /// 1：原生页面
    /// 2：H5页面
    /// 3：APP
    /// </summary>
    public int Type { get; set; }
    
    /// <summary>
    /// 跳转目标
    /// </summary>
    public string Target { get; set; }
    
    /// <summary>
    /// 其它数据
    /// </summary>
    public string Value { get; set; }
    
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? StartTime { get; set; }
    
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndTime { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreInsert = true)]
    public DateTime CreationTime { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; }
    
    /// <summary>
    /// 是否启用
    /// </summary>
    public bool IsEnabled { get; set; }
}